package org.jeecg.trace.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import com.alibaba.excel.annotation.format.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class MesLotStatusDTO implements Serializable {

    private static final long serialVersionUID = 2850695291274833732L;

    /**主键ID*/
    @ExcelProperty(value = "主键ID")
    @ColumnWidth(15)
    private String recId;
    /**产线/产线组*/
    @ExcelProperty(value = "产线/产线组")
    @ColumnWidth(15)
    private String line;
    /**产品/产品组*/
    @ExcelProperty(value = "产品/产品组")
    @ColumnWidth(15)
    private String partno;
    /**工单ID*/
    @ExcelProperty(value = "工单ID")
    @ColumnWidth(15)
    private String woid;
    /**批次号*/
    @ExcelProperty(value = "父批次号")
    @ColumnWidth(15)
    private String packId;
    /**批次号*/
    @ExcelProperty(value = "批次号")
    @ColumnWidth(15)
    private String lotno;
    /**单位*/
    @ExcelProperty(value = "单位")
    @Dict(dicCode = "unit")
    @ColumnWidth(15)
    private String unit;
    /**批次数量*/
    @ExcelProperty(value = "批次数量")
    @ColumnWidth(15)
    private java.math.BigDecimal qty;
    /**批次当前数量*/
    @ExcelProperty(value = "批次当前数量")
    @ColumnWidth(15)
    private java.math.BigDecimal qtyCur;
    /**状态*/
    @ExcelProperty(value = "状态")
    @Dict(dicCode = "lot_status")
    @ColumnWidth(15)
    private String status;
    /**班次日期*/
    @ExcelProperty(value = "班次日期")
    @DateTimeFormat("yyyy-MM-dd")
    @ColumnWidth(15)
    private String shiftDate;
    /**班次*/
    @ExcelProperty(value = "班次")
    @ColumnWidth(15)
    private String shift;
    /**操作工*/
    @ExcelIgnore
    private String operator;
    /**批次标签模板文件路径*/
    @ExcelProperty(value = "批次标签模板文件路径")
    @ColumnWidth(18)
    private String labelPath;
    /**更新时间*/
    @ExcelProperty(value = "更新时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(15)
    private String ctime;
}
